<html>
<head>
<title>askOracle</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../../_sharedassets/pages.js"></script>
</head>
<body>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_70.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10"  height="1"><a href="FStEngOneFive_72.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1"></td></tr></table>
<h1>askOracle</h1>
<h4>Usage</h4>
<pre>
<i>mystateEngine.askOracle(reqName, val, myInstance)</i>
</pre>
<h4>Parameters</h4>
<p><i>reqName</i> Name (string) of the request</p>
<p><i>val</i>Value associated with the request (if any)</p>
<p><i>myInstance</i> (optional) Instance of who is making the request.  Only used if oracle uses it to determine how to answer.</p>
<h4>Returns</h4>
<p>Gives back the value that the oracle has returned, if any.</p>
<h4>Description</h4>
<p>This method is used to request information from the engine's oracle. The oracle must be set up in advance to answer these types of requests. The oracle must have a method named <code>irh()</code> to receive the request, and must return a value. This value is returned from <code>askOracle()</code>.</p>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="6" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_70.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10" height="1"><a href="FStEngOneFive_72.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr></table>
</body>
</html>